/*
 * Copyright (C) 2010-2011 Enrique Lara (enrique.posix2.lara@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
 * limitations under the License.
  */
package app.timetogo;

import android.app.Activity;

import android.os.Bundle;

import android.text.Html;

import android.text.method.LinkMovementMethod;

import android.widget.TextView;

public final class About extends Activity {
    @Override
    protected void onCreate(final Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about);
        setTitle(getText(R.string.about));

        final TextView txt = (TextView) findViewById(R.id.text);
        txt.setText(Html.fromHtml("<h1>" + getText(R.string.app_name) + " " + getText(R.string.app_version) + "</h1>" + "<h2>Note</h2>" + "<div>" + "This application is intented to help minimize your wait time by giving " + "you a head's up for a train/bus that meets your criteria.<br />" + "Two warnings:<br />" + "1) There may never be that perfect ride.<br />" + "2) This application definitely has bugs.<br />" + "Which is to say <b>DO NOT USE THIS APPLICATION FOR ANYTHING CRITICAL!</b>" + "</div>" + "<h2>Copyright</h2>" + "<div>" + "Copyright 2010 Enrique Lara <enrique.posix2.lara@google.com><br />" + "<br />" + "Licensed under the Apache License, Version 2.0 (the \"License\");<br />" + "you may not use this file except in compliance with the License.<br />" + "You may obtain a copy of the License at<br />" + "<br />" + "<a href=\"http://www.apache.org/licenses/LICENSE-2.0\">http://www.apache.org/licenses/LICENSE-2.0</a><br />" + "<br />" + "Unless required by applicable law or agreed to in writing, software<br />" + "distributed under the License is distributed on an \"AS IS\" BASIS,<br />" + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br />" + "See the License for the specific language governing permissions and<br />" + "limitations under the License.<br />" + "</div>" + "<h1>License/Credits</h1>" + "<h2>WMATA Data</h2>" + "<div>" + "All transit data is provided by the Washington Metropolitan Area Transit Authority.<br />" + "<a href=\"http://www.wmata.com\">http://www.wmata.com</a><br />" + "</div>" + "<h2>Code from ApiDemos</h2>" + "<div>" + "This software borrows constructs from the ApiDemos project.<br />" + "That project was distributed under the Apache License, Version 2.0, and was written by The Android Open Source Project<br />" + "</div>" + "<h2>Tango Icons</h2>" + "<div>" + "This application uses Tango Icons.<br />" + "They are in the Public Domain, many thanks.<br />" + "<br />" + "<a href=\"http://tango.freedesktop.org\">http://tango.freedesktop.org</a><br />" + "</div>" + "" + "Thanks," + "Enrique"));
        txt.setMovementMethod(LinkMovementMethod.getInstance());
    }
}
